package com.team11.server.pojo.dto.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiOperation("学生请假管理接收参数")
public class Leave {

    @ApiModelProperty(value = "审批状态")
    @TableField("l_status")
    private Integer lStatus;

    @ApiModelProperty(value = "请假原因")
    @TableField("l_reason")
    private String lReason;

    @ApiModelProperty(value = "主题")
    @TableField("l_theme")
    private String lTheme;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDate startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @TableField(exist = false)
    private LocalDate endTime;
}
